<?php

namespace Yj\Excel\Factories;

use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;

class WriterFactory
{
    public static function make(string $writerType,Spreadsheet $spreadsheet, $export){
        $writer = IOFactory::createWriter($spreadsheet, $writerType);
        return $writer;
    }

}